import axios from '../axios'

const header = {
    "Content-Type": "multipart/form-data;charset=utf-8"
}

// 生成二维码
export const addQrcode = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/add',
        method: 'post',
        data,
        headers: header
    })
}
// 获取二维码列表
export const getQrcodeList = (params) => {
    return axios({
        url: '/park/zyb/laneUrl/list',
        method: 'get',
        params
    })
}
// 查看二维码
export const getQrCode = (params) => {
    return axios({
        url: '/park/zyb/laneUrl/getQrCode',
        method: 'get',
        params
    })
}
// 绑定前查询
export const visitQuery = (params) => {
    return axios({
        url: '/park/zyb/laneUrl/visitQuery',
        method: 'get',
        params
    })
}
// 绑定
export const bindingQrcode = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/binding',
        method: 'post',
        data,
        headers: header
    })
}
// 多选下载
export const downloadQrcode = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/download',
        method: 'post',
        data,
        headers: header
    })
}
// 停用
export const stopQrcode = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/stop',
        method: 'post',
        data,
        headers: header
    })
}
// 启用
export const startUse = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/start',
        method: 'post',
        data,
        headers: header
    })
}
// 解除绑定
export const unbundling = (data) => {
    return axios({
        url: '/park/zyb/laneUrl/unbundling',
        method: 'post',
        data,
        headers: header
    })
}
